package com.cts.learninglibrary.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.sql.Blob;
import java.sql.Clob;
import java.sql.Timestamp;

/**
 * @author: kwanghuee
 * @date: 2020/8/18 8:53
 */
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
@TableName("share")
@ApiModel(value = "分享表")
public class Share {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键id", required = true)
    private Integer id;

    @ApiModelProperty(value = "用户id", required = true)
    private Integer userId;

    @ApiModelProperty(value = "分享类型，1：文章，2：文档", required = true)
    private Integer type;

    @ApiModelProperty(value = "状态值（1：删除/0：非删除）", required = false)
    private Integer status;

    @ApiModelProperty(value = "分享属性【0:原创、1:转载】", required = true)
    private Integer property;

    @ApiModelProperty(value = "标题", required = true)
    private String title;

    @ApiModelProperty(value = "简介", required = true)
    private String synopsis;

    @ApiModelProperty(value = "内容", required = true)
    private String content;

    @ApiModelProperty(value = "标签id", required = true)
    private Integer labelId;

    @ApiModelProperty(value = "分类id", required = true)
    private Integer classifyId;

    @ApiModelProperty(value = "浏览次数", required = false)
    private Integer visitsNum;

    @ApiModelProperty(value = "操作时间", required = true)
    private Timestamp operateTime;


}
